package main

import (
	"fmt"
	"gitee/jymukong/goffmpeg"
)

func main() {
	var gff goffmpeg.GoFFmpeg
	gff.Amr = "./i.amr"
	gff.Mp3 = "./o.mp3"
	out, b, err := gff.AmrToMp3()
	if err != nil {
		fmt.Println("发生了错误:", err, "\nout:", out)
		return
	}
	if !b {
		//
		fmt.Println("任务没有完成:", b, "\nout:", out)
		return
	}
	fmt.Println("\nmp3 path:", gff.Mp3)
}
